import request from "@/utils/request";

// 根据字典类型查询字典数据信息
export function getDictsApi(dictType) {
  return request({
    url: "/system/dict/data/dictType",
    method: "get",
    params: { dictType },
  });
}

// 根据字典类型查询字典数据信息
export function getTaskDictsApi(params) {
  return request({
    url: "/system/dict/data/selectDictDataVoByParentType",
    method: "get",
    params,
  });
}

// 文件下载
export function fileDownload(url) {
  return request({
    responseType: "blob", //这里最重要,不要去掉
    url: "/file/download",
    method: "get",
    params: { url },
  });
}
